<?php
$country = $state['PlaceCountry'];   
$departments = $state['PlaceDepartment']; 
$state = $state['PlaceState'];  

?>

<h2> <?php echo $this->Display->text($state, 'PlaceState');?> </h2>

<div>
    <p>
        Pays : <?php echo $this->Display->link($country,'PlaceCountry');?> <br/>
        Départements : <?php echo count($departments);?> 
    </p>

    <?php
    if (!empty($departments)){
    ?>
    <ul>
        <?php 
        foreach ($departments as $department){
        ?>
            <li> <?php echo $this->Display->link($department,'PlaceDepartment');?> </li>
        <?php
        }
        ?>
    </ul>
    <?php
    }
    else{
        
        
    }
    ?>
</div>


